package com.xjj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xjj.excel.ExcelExport;
import com.xjj.excel.ExcelImport;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Auther: AYang
 * @Date: 2022/10/19 18:48
 * @Description: 学生实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("xjj_student")
public class Student {
    @TableId(type = IdType.AUTO)
    private Integer id;
    // 学号
    @TableField("sid")
    @ExcelImport("学号")
    @ExcelExport("学号")
    private String sid;
    // 姓名
    @TableField("name")
    @ExcelImport("姓名")
    @ExcelExport("姓名")
    private String name;
    // 性别
    @TableField("gender")
    @ExcelImport("性别")
    @ExcelExport("性别")
    private String gender;
    // 出生日期
    @TableField("birthday")
    @ExcelImport("出生日期")
    @ExcelExport("出生日期")
    private String birthday;
    // 家长电话
    @TableField("tel")
    @ExcelImport("家长电话")
    @ExcelExport("家长电话")
    private String tel;
    // 班级id
    @TableField("klass_id")
    private Integer klassId;
    // 学校id
    @TableField("school_id")
    private Integer schoolId;
    // 家长id
    @TableField("parent_id")
    private Integer parentId;
    // 迟到次数
    @TableField("late_num")
    @ExcelImport("迟到次数")
    @ExcelExport("迟到次数")
    private Integer lateNum;
    // 缺勤次数
    @TableField("absence_num")
    @ExcelImport("缺勤次数")
    @ExcelExport("缺勤次数")
    private Integer absenceNum;
    // 请假次数
    @TableField("ask_leave")
    @ExcelImport("请假次数")
    @ExcelExport("请假次数")
    private Integer askLeave;
    // 已提交作业次数
    @TableField("submitted_num")
    @ExcelImport("已提交作业次数")
    @ExcelExport("已提交作业次数")
    private Integer submittedNum;

    // 考勤状态   默认全到齐，状态为y；缺勤为n；迟到为l
    @TableField("attend_status")
    private String attendStatus;

    @TableField(exist = false)
    private String klassName;

    @TableField(exist = false)
    private String parentName;

    @TableField(exist = false)
    private String schoolName;

}
